package com.example.demo.day0228;

/**
 * 通过遍历course的每个实例来实现枚举的枚举
 */
public class Meal {
    public static void main(String[] args) {
        for (int i = 0;i < 5;i++ ){//建立一个循环次数为5的for循环
            for (Course course : Course.values()){//遍历course的values对象
                Food food=course.randomSelection();
                System.out.println(food);
            }
            System.out.println("-----------");
        }
    }
}
